package OJDemo输入输出;

import java.util.Scanner;

/**
 * @author zc
 * @version 1.0
 * @date 2021/9/7 10:33
 */
public class Main3 {

    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int t = cin.nextInt();
        int a , b ;
        for (int i = 0; i < t; i++) {
            while(cin.hasNext()){
                a = cin.nextInt();
                b = cin.nextInt();
                System.out.println(a+b);
            }

        }
    }
}
